﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ScrumTracker.Model;
using AutoMapper;

namespace ScrumTrackerAjax.Controllers
{
    [Authorize]
    public class PagesController : AbstractController
    {
        //
        // GET: /Pages/

        public ActionResult Dashboard()
        {
            ViewData.Model = Product.Search(includeHidden: true);
            //var dto = new Product.DTO();
            //var products = Product.Search(includeHidden: true);
            //Mapper.CreateMap<Product, Product.DTO>();
            //ViewData.Model = Mapper.Map<List<Product.DTO>>(products);
            return View();
        }
    }
}
